/****************************************************************
 * <strong>IMFSecurity</strong>
 *
 * <p>
 * IMFSecurity
 * </p>
 *
 * @author AndyZhang 2011
 * @version 0.1
 * ToDo:
 ***************************************************************/

package com.thinkwide.data.security;

public interface IMFSecurity {
    public static String DefaultKey = "1234567890123456";

    public byte[] encrypt(byte[] byteContent, String password) throws Exception;

    public String encryptString(String content, String password) throws Exception;

    public String encryptString(String content) throws Exception;

    public String encryptBase64(String content, String password) throws Exception;


    public byte[] decrypt(byte[] byteContent, String password) throws Exception;

    public String decryptString(String content, String password) throws Exception;

    public String decryptString(String content) throws Exception;

    public String decryptBase64(String content, String password) throws Exception;
}
